﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/admin.master" AutoEventWireup="true" CodeFile="Editor.aspx.cs" Inherits="admin_users_Editor" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <title>Kimland - Người dùng quản lý administrator</title>
    <script type="text/javascript">
        $(function () {
            $(".headerR li:last").addClass("active");
            var text = $("input[id*=hidChar]").val();
            $(".search a").removeClass("active");
            $(".search a[rel=" + text + "]").addClass("active");
        })
       
    </script>
    <style type="text/css">
        .boxMenuL:hover a,.boxMenuL.active a{color:#d80018;text-decoration:none;text-transform:uppercase;}
        .boxMenuL:hover,.boxMenuL.active{margin-bottom:5px;}
        .boxMenuL:hover .l,.boxMenuL.active .l{background:url(/images/sm_l.png) no-repeat;}
        .boxMenuL:hover .m,.boxMenuL.active .m{background:url(/images/sm_m.png) repeat-x;}
        .boxMenuL:hover .r,.boxMenuL.active .r{background:url(/images/sm_r.png) no-repeat;}
        .disable,.disable:hover{color:#000}
        .search{margin:5px 0px 10px 0px}
            .search a{font-weight:bold;} 
            .search .active{color:#000;}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="body">
    <div class="bodyL">
        <p class="gOval"><a href="/admin/users/default.aspx" class="nguoidung"></a></p>
        
    </div>
           
    <div class="bodyR">
          <div class="topCatBR">
            <p class="l"></p>
            <div class="m">
                <p class="pos">
                    <asp:Literal ID="litPos" runat="server" Text=""></asp:Literal>
                </p>
            </div>
            
            <p class="r"></p>
        </div>
        <div class="boxBorder" style="height:500px;min-height:500px;height:auto">
            
             <div class="info_div" id="fail" runat="server" visible="false"><span class="ico_cancel">Có lỗi xảy ra!</span></div>
   
	      <table class="edit">
        <tr>
            <th style="width:130px">Avatar:</th>
            <td><asp:FileUpload ID="fileUpAvatar" runat="server" CssClass="fileUpload"/>
                <p class="imgAvatar">
                    <asp:Image ID="imgAvatar" runat="server" ImageUrl="/images/no_image.jpg" Width="58px" Height="58px" style="margin:3px;padding:0px;"/>
                </p>
            </td>
        </tr>
        <tr>
            <th>Username:</th>
            <td><asp:TextBox ID="txtUsername" runat="server" Width="500px"></asp:TextBox></td>
        </tr>
         <tr>
            <th>Mật khẩu:</th>
            <td>                
                <asp:TextBox ID="txtPass" TextMode="Password" runat="server" Width="500px"></asp:TextBox>               
            </td>
        </tr>
         <tr>
            <th>Nhập lại mật khẩu:</th>
            <td><asp:TextBox ID="txtConfirmPass" TextMode="Password" runat="server" Width="500px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ErrorMessage="*" ControlToValidate="txtConfirmPass" SetFocusOnError="True" 
                    ValidationGroup="user">*</asp:RequiredFieldValidator>
                 <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ErrorMessage="Mật khẩu nhập không đúng" ControlToCompare="txtPass" 
                    ControlToValidate="txtConfirmPass" SetFocusOnError="True" 
                    ValidationGroup="user">Mật khẩu nhập không đúng</asp:CompareValidator>
             </td>
        </tr>
        <tr>
            <th></th>
            <td><asp:Button ID="btnEdit" runat="server" Text="Sửa" CssClass="buttonA" 
                    onclick="btnEdit_Click" ValidationGroup="user" />
                <asp:Button ID="btnAdd" runat="server" Text="Thêm mới" CssClass="buttonA" 
                    onclick="btnAdd_Click" ValidationGroup="user"/>
                <asp:Button ID="btnCancel" runat="server" Text="Hủy" CssClass="buttonA" onclick="btnCancel_Click"/>		
            </td>
        </tr>
    </table>	
	<asp:HiddenField ID="hidID" runat="server" />
    <asp:HiddenField ID="hidAvatar" runat="server" Value="/images/no_image.jpg"/>
       
    </div>
    </div>
</div>
</asp:Content>

